completed functionality for edit profile