Fix Password recovery function, add validate for update;