Replaced the asserts in registerUser

with Regex and raise exceptions on failure to match

The exceptions will still crash the application. In the future better exception handling will need to be added into the functions.

I set the minimum nickname length to 3 and the minimum password length to 6. 

Closes #82 
Can we move the validation logic out in a separate method/function?