added login/out system