form validation implemented
cleanup