add validation to reg form and spring failure page