added code for activation and deactivation of user; precursor code for changing to an activation URL instead of sending the password in plaintext