updated updateUsers in Users.php and password encryption in ModelFactory to fix a bug that occurred on logout.
  the user model is updated for setting the toke to null and it contains the already encrypted password, but it got encrypted again, so i didn't match with the one in the database. fixed d3dc56404a