add crude form validation for login