Fixed some minor errors with the login controller