Fixing filter method and placing it on the server

browser does not support isLetter or isDigit methods. placed the filter
on the server side to solve this issue