Added proper form validations.