refactored profile pages to use isOwner function to determine what to show to viewing user
profile updates working with one function for all fields