added login constraints
Merge branch 'master' of https://github.com/lkb123/cqas
stable code 1:39