finished basic authentication using sorcery gem