Your issue is that the loginForm
you have is return a tuple with user/password. You are doing an authenticate to validate but you are not mapping to a token.
You are probably looking to use mapping
instead of tuple
if you want your form to return a token.