1. added form validation for signup