basic validation done