User Specs and creation fix.

* Add specs for user.
* Don't crash when an invalid username is given at the create user form.