update mail sending functionality

Added body of function generateLink, which provides url for activation.
Into class Person added field hashCode, which is generated randomly in
method setProfile.