create checkUsername directive