Implemented isValidUsername.