add an input check,needs work,  and change input types back to text