oussama mahfoudh, commit 3.
Added server and client side form validation, done some code
refactoring, fixed some minor security issues, secured the existing two
forms from xss.
Added server and client side validation, fixed some security issues,
done some code refactoring, secured the two existing forms from xss.