login, logout and register done