Added error checking to validation