Made loader, auth, login functionality