Return errorCode when username is empty