add sign out function
fixed ajax request auth error
switch on auth common process