Added custom regex validation.