private async Task SignUpAsync() { if (Validate()) { logindetails.Username = residents.Username; Database_API database = new Database_API(); database.SignUpResidentUsersAsync(logindetails, residents); Application.Current.MainPage = new NavigationPage(new MenuPageUser()); } else { Console.WriteLine("Database Error."); } }