Set up profile function to get user info and display profile if logged in