Revert "Revert "Login test""

This reverts commit 7271dac5b534c84fb82f7da6bcf7268c8474dd73.