login and register resolve