added django's login form and updated api