check verification function in login.js and add $appservice auth function in some files