userDetails to userentity