Bug fixes to edit profile page