Refactored user creation in sinatra app