correct the mistakes on login controller

correct the mistakes on login controller