result = badRequest(register.render(registerForm));
}
else
{
Register register = registerForm.get();
new UserServices().createUser(register.userName, register.displayName, register.password);
session("userName", register.userName);
result = redirect(routes.Application.index());
}
return result;
}