added check for empty post in contact us view