Fix undefined variables in loginForm.php

'token' was never set() and 'username' was set only if 'token' would have been set.
Now both are always set.
Merge branch 'fix-undefined-variables'