public void ForgotPasswordSubmit() { if (string.IsNullOrEmpty(EmailFPInput.text)) { EmailFPInput.GetComponent <ValidateInput>().Validate(string.Empty); } else if (EmailFPInput.GetComponent <ValidateInput>().isValidInput) { emailid = EmailFPInput.text; LoaderPanel.SetActive(true); WebRequestObject.ProcessForgotPassword(emailid, ForgotPasswordSubmitCallback); } }