WordPress code containing login bug