Additional changes to users model

fix for oauth