Ajax contact form returnig 0

What makes you think this will ever be true?

if (isset($_POST['submit'])){

In function dav_form_validation the die() is in 2 conditionals. It should be called regardless of whether the conditionals are satisfied. Add 2 else clauses and return error messages.

Usually a response of ‘0’, means the ajax hooks are not being found. But your code seems okay in that regard.