you need to sign out of one then sign in to the other with other name.
Did this answer your question? If not, then ask a new question.
This is a Simple Dialog Demo.