PHP Updates

Finished registration and updated test to have error codes, just to it's
easy for illiterate people to understand.