Socket authentication & validation send error messages correctly