if(username != null && username.length() > 0 && password != null && password.length() > 2) { return true; } return false;