update login and register page