Validation message when register-fail

An error-message is shown when trying to register a username that is
already taken.

Also added some comments here and there.