package example.controllers.forms;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class UserForm implements Serializable {

    public static final long serialVersionUID = 1L;

    @Length(min=1, max=50)
    private String name;

    @Length(min=6, max=255)
    @Email
    private String email;

    @NotBlank
    private String password;

    @NotBlank
    private String passwordConfirmation;
}

@@ -514,32 +514,46 @@
 mail;%0A%0A    @
-NotBlank
+Length(min=6, max=255)
 %0A    private
@@ -576,24 +576,38 @@
 ;%0A%0A    @
-NotBlank
+Length(min=6, max=255)
 %0A    pri

add password validation