Putting some validation