directive for submit when enter is pressed