old_contents: from flask_wtf import Form                             # type: ignore
  from wtforms.fields import StringField, PasswordField  # type: ignore
  from wtforms.validators import Required, Length        # type: ignore
  
  
  class SigninForm(Form):  # type: ignore
      username = StringField('username', [Required(message='Username is required'),
                                          Length(min=4, max=70, message='Username is incorrect')])
      password = PasswordField('password', [Required(message='Password is required')])
  
      def __init__(self, *args, **kwargs):
          Form.__init__(self, *args, **kwargs)
  
  
  class TitleSearchForm(Form):  # type: ignore
      search_term = StringField('search_term',
                                [Required(message='Search term is required'),
                                 Length(min=3, max=70, message='Search term is too short/long')])
  
      def __init__(self, *args, **kwargs):
          Form.__init__(self, *args, **kwargs)
  
new_contents: from flask_wtf import Form                             # type: ignore
  from wtforms.fields import StringField, PasswordField  # type: ignore
  from wtforms.validators import Required, Length        # type: ignore
  
  
  class TitleSearchForm(Form):  # type: ignore
      search_term = StringField('search_term',
                                [Required(message='Search term is required'),
                                 Length(min=3, max=70, message='Search term is too short/long')])
  
      def __init__(self, *args, **kwargs):
          Form.__init__(self, *args, **kwargs)
  
subject: refactor - remove unnecessary sign in form