Added regex validation to registration