payment_paid_date = $(this).closest('tr').find('[class*="datepicker"]').datepicker({ dateFormat: 'dd.mm.yy' }).val()
from django.contrib.auth import authenticate, login
user = authenticate(username=username, password=password)
if user is not None:
login(request, user)