Effects of success and failure on perceptions of gender identity