userdetails conditional complexity fix