redirect to home if not logged in and show flash message implemented
redirect from cart to create account page if need login
redirect back to checkout page after login working
fixed merge conflict