Ajax Form Not Working in some Some Regions
I got the solution for this . Just want to tell  the answer for anyone who might come across this problem. The problem was :

I was printing it in html.tpl.php.

The solution is 

print it on either page.tpl.php or page--xxxx.tpl.php and print it as 

&lt;?php 
     print render($page['contact']);
 ?&gt;