add check log in from database