Ionic Login using MySQL and PHP

Hi everyone,
I’m trying to get a user login working on my application using MySQL and PHP but every time I try to sign in with the correct/incorrect credentials it send me to the page I want to navigate to when the credentials are supposed to be correct. Anyone have any ideas?