added pattern attr for number