finish signing in and out function
 trying to meger with sing-in-out