I assume the login page is set as the role specific home page for the anonymous user role in the navigation.
Maybe there is no other page defined for the role that the user has and therefore the user is directed to the default home page which is the login page.
Make sure the role based home page is set as the login page for the anonymous userrole and the page you want to land on after the signin is set for that specific userole.