Refactored wordPressLogin and tested, working