login and register doc updated