Identity formation and societal constraints