Added validations for special characters.