login before php for all pages