working on ritly authentication