added login for follow and favorite actions