Added code for returning user profile object