added log out function
figured out how to messily lock down pages I only want authenticated users to have access to.
syntax cleanup