Implemented balance check and withdraw