register modal copied from login and integrated into router