#7 implemented basic validation.