Added Form submission and validation