added user registering, login, logout