added newEmail function to User.java