added api to get user info for profile page