add base template and extend login from it