setting correct input types to forms