null pointer exception
<pre><code>package javajazzup;

public class LoginBean{
 String loginid;
 String pwd;

 public LoginBean(){}

 public String getLoginid(){
  return loginid;
 }
 public void setLoginid(String loginid){
  this.loginid = loginid;
 }
 public String getPwd(){
  return pwd;
 }
 public void setPwd(String pwd){
  this.pwd = pwd;
 }
 public String CheckValidUser(){
  if(loginid.equals("JavaJazzUp") &amp;&amp; pwd.equals("mypwd")){
   return "success";
  }
  else{
   return "fail";
  }
 }
}
</code></pre>
