Fixed Java Scrpt Validations and Showing error messages for Serverside Validations