change UserDetails to User