added validation and improved form styling