Login controller and Users model fixes