major update login and register