userDetails improvements