made register with modal