Reworked most of the code.
Added a generic function for checking unique values.

slight refactoring to other parts too.
Login code written.

Currently not working.
Login working

Fixed some stupid mistakes.
SQL for table creation added.

Began adding cookie support.