When you turn on security, a default login page is already present. So no need to create one yourself in the first place
If you want to have a more designed page you have 2 options
But as I understand, you are quite new to Mendix and exploring the possibilities; so I advise to use the existing default page for now