Fixed a couple bugs with registering users