decides if loan should be granted or not