add base function and start login/admin section