added directives and styling for forms