added a seperate route for phone to x and added pin creation mechanism