bug fixed in user input validations:use jquery trim() to filter out the special characters