Update User.php

Added the data parameter to the pre and post events for changing the password and email.