Finished validation logic.