Login and Logout working in API, file serving working