Fixed a couple minor bugs in user-registration