Revert "ajax login & subscribtion fixes"

This reverts commit d5721b348cedf2bd436173c8c39b6cf1e9c436bb.