changed regex to allow ids of 5-7 characters