Add basic static validation of form with ajax