do not send login request if input is invalid