added code to prevent special characters