added form validation for signup and login pages