pstmt.setInt(1,userID);
pstmt.setString(2,"notactive");
rs = pstmt.executeQuery();
if(rs.next()){
//This account is not activated yet and can not be authorized to login.
throw new UserNotActivatedException("User not yet activated");
}
//pstmt.setInt(1,userID);
pstmt.setString(2,"lastlogin");
rs = pstmt.executeQuery();
//If the query had no results, insert the lastlogin into properties