made form inputs a directive