Begin backend code for user login and profiles.