//TO BE DONE : Form Validation. All fields are REQUIRED and cannot be null. private async void SignUp_OnClick_Register(object sender, EventArgs e) { if (PasswordEntry.Text != ConfirmPasswordEntry.Text) { PasswordMismatchLabel.IsVisible = !PasswordMismatchLabel.IsVisible; } else { Employee employee = new Employee(); Login login = new Login(); employee.employeeid = EmployeeIDEntry.Text; employee.name = NameEntry.Text; employee.department = DepartmentEntry.Text; employee.contactno = ContactNoEntry.Text; employee.gender = GenderPicker.Items[GenderPicker.SelectedIndex]; login.loginid = EmployeeIDEntry.Text; login.password = PasswordEntry.Text; EmployeeController.AddEmployeeAsync(employee, login); await Navigation.PushModalAsync(new Pages.HomePage()); } }