Make validator work without Laravel being a requirement