Check for text or password input