update added logout after register