Make form errors appear before a specific input in forms and add default focus

depends on #291