fixed userAutentication login and logout