fixed errorhandling for non unique usernames
fixed error message for user with not unique username and for new user with empty password
fixed code style issues
added documentation
fixed coding style
Merge branch 'feature/username-error-handling' into develop