Made some changes to prevent some DRY code and added in editing user profiles.