Fixed login_validate syntax