API endpoint for email update