Fixed bug in auth controller.