login register and logout in the same page