implemented login, logout and create user