Make registerUser() static

This allows it to be called by other plugins and stuff.