User authentication and some layout manipulation