Login works and qs directive ported-ish