update the view of login and register