Fixed session validation (if you're not logged in it asks you to do it). It must be done on the other files as done in this example.