Input number validation added.