Fixed the logout problem when a user submitted credit card details