Added a cookie for user id on login so that I can do stuff in Angular that pertains to just logged in users. Also did some refactoring to make user create call the login process, there was some duplicate code