Changed login controller.

This was done in order to reflect changes made to the login view.