added the final condition to the code which is if all information is correct.