User authentication and Homepage controller