Modification of the regex to match all usernames
Simplification of code and addition of unit tests
Dirty addition of encryption