Fixed the parameters of the method isValidUsername.