added lost of form validation stuff. and other such clean up..