improved stream alert input JS validations. fixes #494