input validators working