validation fixes
Finishing touches finsihed. Including session checks to prevent unauthorised access