Switched length check to server for register
Closes #47