Well thank you for your help
I just did a proc using what you’ve post and everything is working just fine. But i just some advices maybe those will help:
-See if you are not adding space in the user name camp when you write the name, cause you are not removing space so a space will me a big difference.
-Make sure your button is calling the “login()” method.
Hope that will help