Added more functionality to edit profile.