Added redirect to previous page in user logout