Added form validation for Add Package page

Added form validation for Add Package page
fixed issue with square bracket not allowing js selection

fixed issue with square bracket not allowing js selection