add login and signup local function