Added secure form validation