moved logout functinoality to userController and changed Application route to use this