MANETS is a kind of ad-hoc network which is continuously changing and not predictable. The nodes in this kind of network are mobile and reorganize themselves randomly. Mobility of these nodes keeps changing from time to time. These nodes are connected using wireless connections to form an ad-hoc network called VANETS. In VANETS (vehicular ad-hoc network) the mobile nodes are vehicles which are equipped with their own resources to carry out the communication (like power, software etc). This paper deals with analyzing the vulnerabilities of VANETS and achieving data integrity and security by providing some authentic means of communication and standards. It describes a protocol which provides prevention against malicious node and how the network reacts in the presence of the malicious node. Using the concept of reliability tables, the paper describes a methodology to dynamically re-create a new route whenever a malicious node is interfaced thus achieving data integrity and security.