Developing identity and emotional regulation