Add javascript validation of fields from admin side