Fixing form validator for Bootstrap 3.