Check for null user in auth.coffee

The script throws an error if the supplied username is not valid.