Fix password not set for new users

* also improves error handling when creating new users