added new form checking logic and photo to user profile page