fix for issue remote_user and realm #19