Fixed 2 weird bugs when registering, moved reg files to a stand alone file to let me work on 2 steps registration