added login/logout authentication for web UI prototype