I'm trying to create a logout button that sends me back to my login page activity but there's an error that I'm unsure of how to fix. The error occurs at the 'Profile\_Fragment.this, LoginPage.class'.

Here is the source code

```
public class Profile_Fragment extends Fragment {
    Button btnLogout;
    FirebaseAuth mFirebaseAuth;
    private FirebaseAuth.AuthStateListener mAuthStateListener

    StorageReference storageReference;
    private static final int IMAGE_REQUEST = 1;
    private Uri imageUri;
    private StorageTask uploadTask;

    @Nullable
    @Override
    //inflate the fragment
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        btnLogout = getView().findViewById(R.id.SignOutButton);
        btnLogout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                FirebaseAuth.getInstance().signOut();
                Intent intToMain = new Intent(Profile_Fragment.this, LoginPage.class);
                startActivity(intToMain);
            }
        });

        return inflater.inflate(R.layout.fragment_profile, container, false);
    }
}

```