Lots of fixes and changes to the website

Added session code, validation code and more.
To do: Hash functions, also need SMTP server setup for emails.