fixed $observe and added a new directive validator-required