added regex to the forms