More validation on register. Fixed fetchId()