Fixed these 4 input validation flaws.