adding route for checking loggedin or not