updated redirect urls and user model