basic layout and login functionality