Changed flash notices for email update and inviting new friend to proper syntax