moving authentication to SCdemo.html