Fixed a comment.
Added validation.