Modified create_user_profile function