added functionality for editing user profile