Fixed a bug in Login controller.