initialize login and layout