fixed the username check