<stay logged in> functions all work