Questions about dependent claiming

My babyfather claimed our daughter last year. We are not married, he lives with me (not on the lease) . Was that okay? And is it okay for me to claim her this year ?