added first login checks to all pages