Fix bug for empty username submit.