login and logout redirect to home