Form validation in register form

Also please notice the regexp in the username validation. I suggest to use this length validation from now on