Added validation for "for", "while", "if".

Still need to add validation for continue and break.