Fixed function to update user's email address. Closes #23