Fixed problems for user registration/profile edition.