$(document).ready(function(){
$("#signin").submit(function(){
var str = $(this).serialize();
   $.ajax({
   type: "POST",
   url: "http://www.bundlebuy.com/user/login",
   data: str,
   success: function(msg){
$("#signindiv").ajaxComplete(function(event, request, settings){
if(msg == '1') // Message Sent? Show the 'Thank You' message and hide the form
{
	location.reload(true);
}
else
{
	result = '<div class="error_message"><b>Error:</b> Username & Password is not correct</div>';
	$(this).html(result);
}
});
}
});
return false;
});
});