Code changes for jquery and adding UI validations.