[EXT-248] Pass user to wp_login correctly.

this also cleaned up some trailing whitespaces