check if login is correct for onet and wp