update login and layout page