Added a directive to focus the first input fields

Closes #1760