Move user logic into controller and out of routes
Move encryption functions to utilities
Create users on the server side