user can now login, logout and register