update login and layout