Fix WordPress login hook