Fix bug in wp_login causing error when user tries to log in