configured LoginPage to correctly navigate user to correct page after logging in considering success or failure