added users registration and login/logout functionality