Passing the login verification to the Model instead of the Controller.