fixed login register logout