Revert "Revert "django login page and decorator""

This reverts commit 3c5d46e5abd93a4eb6240fd6a9f56b9946859141.