Form Validation and Error handling implementation