write condition for when user enters an invalid name