user = userService.createUser(fullName, email, username, password1);
Authentication token = new UsernamePasswordAuthenticationToken(username, password1);
Authentication result = authenticationManager.authenticate(token);
SecurityContext securityContext = new SecurityContextImpl();
securityContext.setAuthentication(result);
SecurityContextHolder.setContext(securityContext);
String path = redirectField.getValue();
if (StringUtils.isNotBlank(path)) {
setRedirect(path);