validation added
Error resetting