public boolean checkUsernameExists(String username) throws DataAccessException {
  return getUserInfo(username) != null;
}

public boolean checkUsernameExists ( String username ) throws DataAccessException { return getUserInfo ( username ) != null ; }
checks to see if the username already exist in the user table
