Protected content redirect for login

Hi, i have Membership 2 enabled and some pages protected. When someone tries to open a protected page they don't have access to it asks them to login and gives the option to login. When you try to use the login on that page it then takes you to the 404 page and doesn't log you in. It tries to take you to the page protected-content/login but that doesn't exist/is conflicted. Could you help please? The logins on other pages and the footer all seem to be ok