modify login and register