Fixed a bug related to username validation