Added register and logout flows