from flask.ext.wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import Required, username


class LoginForm(Form):
    username = StringField('username', validators=[Required()])
    password = PasswordField('Password', validators=[Required()])


class RegistrationForm(Form):
    username = StringField('Username', validators=[Required()])
    password = PasswordField('Password', validators=[Required()])

@@ -2,39 +2,8 @@
 rom 
-flask.ext.wtf import Form%0Afrom 
 wtfo
@@ -12,16 +12,22 @@
 s import
+ Form,
  StringF
@@ -77,24 +77,28 @@
  import 
+Data
 Required
 , userna
@@ -93,18 +93,40 @@
 ired
-, username
+%0Afrom flask_wtf import FlaskForm
 %0A%0A%0Ac
@@ -190,32 +190,36 @@
 e', validators=%5B
+Data
 Required()%5D)%0A   
@@ -260,32 +260,36 @@
 d', validators=%5B
+Data
 Required()%5D)%0A%0A%0Ac
@@ -360,32 +360,36 @@
 e', validators=%5B
+Data
 Required()%5D)%0A   
@@ -438,16 +438,20 @@
 dators=%5B
+Data
 Required

Use DataRequired as validator