added sessions and more validation, javascript redirects, and javascript form hints