Better login detection for wordpress