InputSanitizer implemented for name fields

Also fixed exception for empty ID field