Fixed get_available for customer to work with the latest schema and in the same way the customer verison works. Added more login checks for paranoia/security.