Adds basic validation