Create compile function to append validElement to template element
Test to see if compile works without link function
return link function in the return of the compile function
Clean code by creating variable 'link' and storing the function there; return 'link' in compile function