fixed switches between log in and out