Added logic to verify confimation code