fixes to the user profile page and logic