add login control
Merge branch 'master' of github.com:miketurbutt/ecostudio
add logic flow control