Started login system
Fixed querystring name ref=>next to comply with django standards