the input elements name attribute is "username", not "user_name". (so stoopid!)
added input validation to method getByUsername() to catch the missing/empty user names before attempting a db lookup.
Merge pull request #340 from stopfstedt/fix_default_login

un-breaks the default login mechanism.