reverting

Previous commit caused null pointer exception in register action.