added authorize method to controller
added automatic login for new user sign up