add site log in function