Fixed bug that let invalid characters in username