there was a minor mistake coming from the template which is now solved by Prathamesh. 
isdigit() will be removed.