I meant the following:
A user created a business profile and inserted all his business details including images.
When he wants to edit the business profile by removing some pictures on the image Gallery, everytime he clicks delete image it redirects to the login page even though he is already logged in.