Fixed validation to be closer to RFC-5321.