bug fixed for invalid email (@user is nil)