Completed Dynamic Checking of code entered by user.
it also sends back the error made by the user.