Fixed failing tests after implementing password check on edit