implemented log in sessions and started with global page templates