Added sorcery for user authentication