refactors login and logout view in member module.