Fixing a problem when sometimes templateUrl of next was undefined
Added validations, closes #55

No refactor was necessary, all validations are build-in Angular validations.