check in before ajax

check in before ajax so that default form works.