replacing underscore by lo-dash; implementing user registration; refactored auth functions in a separated file