Added redirect in logoutUser
Modified the logout implementation
Added userLogout API