Added validations to named parameters to keep users from using wrong pro...

...perties with the wrong type