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()])
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()])

Add Registration form