add login and logout function to project using auth