Localizing form errors and some other improvements