adding mobile register for ios, cleaning up some old register code