Server side implementation of app, api, controller, and model for logging a user in and simulating 500ms time to get user from database