change flow of login logout