public boolean hasPasswordChanged(){
  return (persistedPassword.equals(password));
}

public boolean hasPasswordChanged ( ) { return ( persistedPassword . equals ( password ) ) ; }
checks whether the password is going to change .
