added logout flow