@Override public void onRequestError(int code,String message){
  if (code == ConnectAPI.LOGIN_CODE) {
    emailLayout.setError("Enter valid Email");
    requestFocus(email);
    passwordLayout.setError("Enter valid Password");
    requestFocus(password);
    signin.setText("Sign in");
    signin.setClickable(true);
  }
}

@ Override public void onRequestError ( int code , String message ) { if ( code == ConnectAPI . LOGIN_CODE ) { emailLayout . setError ( "Enter valid Email" ) ; requestFocus ( email ) ; passwordLayout . setError ( "Enter valid Password" ) ; requestFocus ( password ) ; signin . setText ( "Sign in" ) ; signin . setClickable ( true ) ; } }
this function is executed when server request returns invalid credentials .
