added route for checking the login status