Implemented user input

I have added a method which uses regular expressions to validate input. Note
that the se expressions are just guesswork based upon usernames and email
address which I have seen and so they are probably not perfect.