Fixed a user login error with local_auth.

Removed some trailing whitespace also.