updated pin and user models