moved script tags to end and made it where all of the pages will redirect to login unless user is signed in