Simple validation inspired by Laravel