You can set the default page as LoginPage, and then call
App.Current.MainPage = new MainPage()
after successful login. Or you can use NavigationPage and navigate from LoginPage to MainPage after successful login.