added check for user_profile if nil