Add javascript validations