add function to retrieve profile information of a user
refactor, put logic that retrieves user's profile information into the User model