changed logout to redirect to login