Adding log in feature