Add function to get user from user id.
Send email if anything goes wrong.