basic user login/register/logout functionality implemented