Refactored user registration, fixed error where app sometimes crashes after registration (UIAlertView delegates should be nil not self)