Template and User session validations

1. Common template added to all pages.
2. User authentication and session validation for each page added