Fixing strict PHP warnings when registering a user

Fixes #329