Reworked username filtering be using a validateUser function so that will be used to prevent user from getting created if it has a invalid character.

This is done to prevent "security flaw".