fixes in userauth system