You could make the add to cart work like a checkout button by setting the redirect to the checkout page rather than a cart page. When the user clicks on add to cart they will go to the checkout page to make the transaction.
As for the other part of this with the login pages post back with some more info about what you have going on so far and let us know if you are having any trouble.