added login and find method including tests