test login and register