added validation input