Added some validaiton, some AJAX and some other new stuff