The login prompt for my app isn't handling Sessions correctly. Here's the scenario:
Once at the login screen, I type in a faulty username and password to fail the login attempt.
Second login attempt, I type in correct credentials. But the app redirects to the index of the app.
If using the correct credentials the first time, the app successfully redirects to the desired page.
I'm not sure how to handle the session management on the failed attempt while still displaying the necessary errors. Thoughts?