Username check

Wraps the username check in a try/except.  The if/else approach failed
when the user model has been swapped out, as an uncaught attribute
error was thrown.