Refactored auth controllers and added url routes to routes.rb