fixing some form validation