login and register has totally finished