Check of login == true for rating with alert