Rule based system for loan approval