user login/logout on mainpage