UPD: changing logic of auto password recovery + small fixes
UPD: small fixes for user migrations