from django.contrib.auth.forms import AuthenticationForm 
from django import forms

class LoginForm(AuthenticationForm):
    username = forms.CharField(label="Username",max_length=30, 
	       widget=forms.TextInput(attrs={'class': 'form-control', 'name':
                   'username','placeholder':'Username','required':'required'}))
    password = forms.CharField(label="Password", max_length=30, 
            widget=forms.TextInput(attrs={'class': 'form-control',
                'type':'password','name': 'password','placeholder':'Password','required':'required'}))
