added the logins and it function