updated user loginscript