basic form validation working for affirmations and login