Adds phone formatting

Updates phone number formatting code to work with React in RegistrationView