fix log in method and add position functionality for todo-items