fixed so userid and aut saved as staic variables