Added some basic code to login
Moved files around for clearer directories
Added a check to ensure some pages require you to be logged in