Update application/controllers/login.php

Fixed a bug whereby the right variable wasn't being passed into the validator.