modified add 'form-control' class logic