input validation regexp added for search