Testing the logic on the front end for checking whether the user was correct or not.