Login form Not workking

I am trying to create a login page by following the tutorial here Somehow when i test the using live preview mode, i get the redirection on success to work. But when testing in a browser, The redirection does not work and neither does the correct error message pop up. Rather, I get the logged in users identity printed in the browser window.
I also get this (http://localhost/graphicpolicy/dmxConnect/api/security/login.php) link loaded in the Address bar instead of the redirect link

What could i be doing wrong?

Community Page
Last updated: