Validation

1. Added type validation to view helper, no silently errors if params
are invalid.