Added code to go from Registration Activity to Main Activity if
registration is successful.