draft: login form validator