public Account saveNewUser(Account account) {
    account.setPassword(passwordEncoder.encodePassword(account.getPassword(), null));

    return accountRepository.save(account);
  }
 @Override
 public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
   return accountRepository.findByUsername(username);
 }