fixing issue with auth (removed session saving stuff by mistake)